package com.yan.demo;

public class Girlfriend {
    private String name;
    private double high;
    private double weight;

    public Girlfriend() {

    }

    public Girlfriend(String name, double high, double weight) {
        this.high = high;
        this.weight = weight;
        this.name = name;
    }

    // 设置set/get方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public void show() {
        System.out.println("我女朋友叫" + name + ",身高" + high + "厘米,体重" + weight + "斤");
    }

    public void wash(){
        System.out.println("女朋友帮我洗衣服");
    }

    public void coke(){
        System.out.println("女朋友帮我做饭");
    }
}
